export default {
    defaultNode: {
        size: [200, 80],
        style: {
            fill: '#fff',
            stroke: '#ced4d9',
            radius: 4,
            cursor: 'move'
        },
        labelCfg: {
            style: {
                fontSize: 0 // 默认 label 无法控制位置，默认隐藏
            }
        }
    },
    nodeStateStyles: {
        hover: {
            fill: '#f3f9ff',
            stroke: '#6ab7ff'
        },
        selected: {
            fill: '#f3f9ff',
            stroke: '#6ab7ff'
        }
    },

    defaultEdge: {
        style: {
            endArrow: {
                path: 'M 5,0 L -5,-5 L -5,5 Z',
                d: 5
            },
            lineWidth: 2,
            lineAppendWidth: 10, // 热区
            stroke: '#ddd',
            lineDash: []
        }
    },
    edgeStateStyles: {
        hover: {
            stroke: '#6AC6FF'
        },
        select: {
            stroke: '#6AC6FF'
        },
        add: {
            stroke: '#6AC6FF',
            lineDash: [5]
        }
    }
}
